.container {
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.selectorCard {
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.selectorHeader {
  padding: 16px 16px 8px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.selectorTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
}

.selectorTitle::before {
  content: '📅';
  margin-right: 8px;
}

.selector {
  padding: 16px;
}

.statsCard {
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.statsHeader {
  padding: 16px 16px 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.statsTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
}

.statsTitle::before {
  content: '📊';
  margin-right: 8px;
}

.exportButton {
  border-radius: 16px;
  font-size: 12px;
  padding: 4px 12px;
}

.statsGrid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.statItem {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.statItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.statValue {
  font-size: 24px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 4px;
}

.statLabel {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.gradesList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gradeCard {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.gradeCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gradeHeader {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f8f8f8;
}

.courseInfo {
  flex: 1;
  min-width: 0;
}

.courseName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.courseDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.courseCode {
  background-color: #f0f0f0;
  color: #666;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.courseType {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.teacher {
  font-size: 12px;
  color: #666;
}

.scoreSection {
  text-align: center;
  margin-left: 16px;
}

.score {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gradeLevel {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.gradeFooter {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
  border-radius: 0 0 12px 12px;
}

.gradeDetail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detailLabel {
  font-size: 12px;
  color: #999;
}

.detailValue {
  font-size: 12px;
  color: #333;
  font-weight: 600;
}

.statusValue {
  font-size: 12px;
  color: #52c41a;
  font-weight: 600;
}

.emptyState {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.emptyIcon {
  font-size: 48px;
  margin-bottom: 16px;
}

.emptyText {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #666;
}

.emptySubtext {
  font-size: 14px;
  color: #999;
}

/* 自定义滚动条样式 */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .content {
    padding: 12px;
  }
  
  .statsGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .statItem {
    padding: 12px;
  }
  
  .statValue {
    font-size: 20px;
  }
  
  .gradeHeader {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .scoreSection {
    margin-left: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .score {
    font-size: 24px;
  }
  
  .courseDetails {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .gradeFooter {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .gradeDetail {
    justify-content: space-between;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selectorCard,
.statsCard,
.gradeCard {
  animation: fadeInUp 0.6s ease-out;
}

.statsCard {
  animation-delay: 0.1s;
}

.gradeCard:nth-child(1) {
  animation-delay: 0.2s;
}

.gradeCard:nth-child(2) {
  animation-delay: 0.3s;
}

.gradeCard:nth-child(3) {
  animation-delay: 0.4s;
}

.gradeCard:nth-child(4) {
  animation-delay: 0.5s;
}

.gradeCard:nth-child(5) {
  animation-delay: 0.6s;
}

/* Selector组件样式优化 */
:global(.adm-selector-option) {
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

:global(.adm-selector-option-active) {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border-color: #1890ff;
  color: white;
}

:global(.adm-selector-option:hover) {
  border-color: #1890ff;
  background-color: #f0f8ff;
}